package com.wzdigit.wms.basic.mapper.core.inv;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.inv.SealDtlGoods;
import com.wzdigit.wms.basic.client.response.inv.SealDtlGoodsResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 封库/解封明细货品清单 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-06-05
 */
@MyBatisRepository
public interface SealDtlGoodsMapper extends BaseMapper<SealDtlGoods> {

	List<SealDtlGoodsResponse> selectBySealDtlId(@Param("sealDtlId") Integer sealDtlId);
	
	List<Integer> selectGoodsIdBySealDtlId(@Param("sealDtlId") Integer sealDtlId);
	
	int updateSealFlag(@Param("sealFlag") Integer sealFlag, 
			@Param("modifyUser")String modifyUser,
			@Param("sealDtlId") Integer sealDtlId, 
			@Param("goodsIdList") List<Integer> goodsIdList);
	
}
